package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-11-21
 * Time: 20:02
 */

@Data // 组合注解，包括了 setter 和 getter 还有 equals 和 toString
@ConfigurationProperties(prefix = "student2") // 读取对象
@Component // 五大类注解不能省略
public class Student {
    private int id;
    private String name;
    private int age;
}
